home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(_root.debut == 1)
- {
- mn = int((_root.timelimitelocal - _root.seconde) / 60);
- sc2 = _root.seconde - t * 60;
- if(sc2 == 60)
- {
- t++;
- sc2 = 0;
- }
- _root.sc = 59 - sc2;
- if(mn < 1)
- {
- _root.temps.gotoAndStop(2);
- if(_root.fin == 0)
- {
- if(_root.seconde == _root.timelimitelocal)
- {
- _root.sc = 0;
- _root.fin = 1;
- }
- }
- }
- if(_root.fin == 1)
- {
- _root.temps.temps = "-- : --";
- }
- else if(_root.sc < 10)
- {
- _root.temps.temps = mn add ":" add "0" add int(_root.sc);
- }
- else
- {
- _root.temps.temps = mn add ":" add int(_root.sc);
- }
- }
- }
-